/* 全局样式优化 */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
    color: #333;
}

/* 导航栏美化 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    background: linear-gradient(to right, #1a237e, #3949ab) !important;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #fff !important;
    transform: translateY(-1px);
}

/* 卡片样式优化 */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background: linear-gradient(to right, #f8f9fa, #fff);
    border-bottom: 1px solid rgba(0,0,0,.05);
    padding: 1.25rem;
}

.card-header h4 {
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
}

/* 表格样式优化 */
.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #f8f9fa;
    border-top: none;
    border-bottom: 2px solid #dee2e6;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(0,123,255,.03);
}

/* 按钮样式优化 */
.btn {
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(to right, #4e73df, #224abe);
    border: none;
}

.btn-danger {
    background: linear-gradient(to right, #e74a3b, #c0392b);
    border: none;
}

.btn-sm {
    padding: 0.25rem 1rem;
    font-size: 0.875rem;
}

/* 徽章样式优化 */
.badge {
    padding: 0.5em 1em;
    font-weight: 500;
    border-radius: 30px;
}

/* 分页样式优化 */
.pagination {
    margin-top: 1.5rem;
}

.page-link {
    border: none;
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    border-radius: 5px;
    color: #4e73df;
    transition: all 0.3s ease;
}

.page-item.active .page-link {
    background: linear-gradient(to right, #4e73df, #224abe);
}

/* 统计卡片样式 */
.stats-card {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #fff, #f8f9fa);
}

.stats-card .card-title {
    color: #6c757d;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.stats-card .card-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

/* 答题选项样式 */
.question-options .form-check {
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.question-options .form-check:hover {
    background-color: #f8f9fa;
    border-color: #4e73df;
}

.question-options .form-check-input:checked + .form-check-label {
    color: #4e73df;
    font-weight: 600;
}

/* 模态框样式 */
.modal-content {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0.5rem 2rem rgba(0,0,0,.1);
}

.modal-header {
    background: linear-gradient(to right, #f8f9fa, #fff);
    border-bottom: 1px solid rgba(0,0,0,.05);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .table-responsive {
        border-radius: 10px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
} 